package com.example.datedemo2;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableWebMvc
@MapperScan("com.example.datedemo2.mapper")
public class Datedemo2Application {

    public static void main(String[] args) {
        SpringApplication.run(Datedemo2Application.class, args);
        System.out.println("success");
        String ym= "2015-02";
        System.out.println(ym.charAt(5));
        System.out.println(ym.substring(0,5));
        System.out.println(ym.substring(6,7));

    }

}
